Spirography and assessment of pulmonary diffusion capacity